package com.platform.entity;

import java.util.ArrayList;
import java.util.List;

public class RegionDataVo{
    //主键
    private String value;
    //区域名称
    private String label;
    //子元素
    private List<RegionDataVo> children;
    //是否异步加载
    private Boolean loading;

    public RegionDataVo () {
        loading = false;
        children = new ArrayList<RegionDataVo>();
    }

    public RegionDataVo (SysRegionEntity sysRegionEntity) {
        value = sysRegionEntity.getId().toString();
        label = sysRegionEntity.getName();
        loading = false;
        children = new ArrayList<RegionDataVo>();
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<RegionDataVo> getChildren() {
        return children;
    }

    public void setChildren(List<RegionDataVo> children) {
        this.children = children;
    }

    public Boolean getLoading() {
        return loading;
    }

    public void setLoading(Boolean loading) {
        this.loading = loading;
    }
}
